﻿using DevExpress.XtraEditors;
using DXApplicationTangche.UC.报表.service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.报表
{

    public partial class Form抖音用户报表 : DevExpress.XtraEditors.XtraForm
    {
        public Form抖音用户报表()
        {
            InitializeComponent();
            this.dataRefresh();
        }

        private void dataRefresh()
        {
            this.gridControl客户.DataSource = 抖音报表service.get客户();
            this.gridView客户.RefreshData();

        }

        private void gridView7_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            DataRow dataRow = this.gridView客户.GetDataRow(e.RowHandle);
            String mobile =  dataRow["mobile"].ToString();
            this.gridControl客户订单.DataSource = 抖音报表service.get客户订单(mobile);
            this.gridView客户订单.RefreshData();
        }
    }



}